const components = []
const contexts = require.context('./', false, /\.vue$/)
const removeList = [] // 要排除某个文件
contexts.keys().forEach(key => {
  const name = key.replace(/(\.\/|\.vue)/g, '')
  removeList.includes(name) ? '' : components[name] = resolve => require([`${key}`], resolve)
})
// 暴露出数组对象
export default components
